
<!DOCTYPE HTML>
<html lang="en" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>2.3 客户端 · smartboot 中文指南</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.2">
        
        
        
    
    <link rel="stylesheet" href="../../../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-search-plus/search.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-expandable-chapters-interactive/expandable-chapters.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-tbfed-pagefooter/footer.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../../../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="../AioSession/" />
    
    
    <link rel="prev" href="../服务端/" />
    

    <style>
    @media only screen and (max-width: 640px) {
        .book-header .hidden-mobile {
            display: none;
        }
    }
    </style>
    <script>
        window["gitbook-plugin-github-buttons"] = {"buttons":[{"user":"smartboot","repo":"smart-socket","type":"star","size":"small","count":true}]};
    </script>

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../../../">
            
                <a href="../../../">
            
                    
                    关于smartboot
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" >
            
                <span>
            
                    
                    smart-socket 使用手册
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../../">
            
                <a href="../../">
            
                    
                    前言
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" >
            
                <span>
            
                    
                    第一章 smart-socket开发指南
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.2.1" data-path="../../chapter-1/2.1-基础应用/">
            
                <a href="../../chapter-1/2.1-基础应用/">
            
                    
                    1.1 快速上手
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2.2" data-path="../../chapter-1/2.2-Spring集成/">
            
                <a href="../../chapter-1/2.2-Spring集成/">
            
                    
                    1.2 Spring集成smart-socket
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2.3" data-path="../../chapter-1/SUMMARY.html">
            
                <a href="../../chapter-1/SUMMARY.html">
            
                    
                    小结
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="../">
            
                <a href="../">
            
                    
                    第二章 源码解析
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.3.1" data-path="../核心接口/">
            
                <a href="../核心接口/">
            
                    
                    2.1 核心接口与状态机
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3.2" data-path="../服务端/">
            
                <a href="../服务端/">
            
                    
                    2.2 服务端
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.2.3.3" data-path="./">
            
                <a href="./">
            
                    
                    2.3 客户端
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3.4" data-path="../AioSession/">
            
                <a href="../AioSession/">
            
                    
                    2.4 会话AioSession
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3.5" data-path="../SUMMARY.html">
            
                <a href="../SUMMARY.html">
            
                    
                    2.5 小结
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="../../chapter-3/">
            
                <a href="../../chapter-3/">
            
                    
                    第三章 通信协议
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.4.1" data-path="../../chapter-3/1-消息归类/">
            
                <a href="../../chapter-3/1-消息归类/">
            
                    
                    3.1 消息归类
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4.2" data-path="../../BLANK.html">
            
                <a href="../../BLANK.html">
            
                    
                    3.2 半包/粘包
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4.3" data-path="../../BLANK.html">
            
                <a href="../../BLANK.html">
            
                    
                    3.3 Http消息解析
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4.4" data-path="../../BLANK.html">
            
                <a href="../../BLANK.html">
            
                    
                    3.4 RPC消息解析
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2.5" data-path="../../chapter-5/">
            
                <a href="../../chapter-5/">
            
                    
                    第四章 内存池
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.6" data-path="../../chapter-6/">
            
                <a href="../../chapter-6/">
            
                    
                    第五章 未来规划
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.7" data-path="../../end/">
            
                <a href="../../end/">
            
                    
                    附录
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" >
            
                <span>
            
                    
                    smart-http 实战手册
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../../../smart-http/">
            
                <a href="../../../smart-http/">
            
                    
                    关于smart-http
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" >
            
                <span>
            
                    
                    第一章 smart-http开发指南
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.2.1" data-path="../../../smart-http/chapter-1/">
            
                <a href="../../../smart-http/chapter-1/">
            
                    
                    1.1 快速上手
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2.2" data-path="../../../smart-http/chapter-1/http_route.html">
            
                <a href="../../../smart-http/chapter-1/http_route.html">
            
                    
                    1.2 请求路由
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2.3" data-path="../../../smart-http/chapter-1/file_upload.html">
            
                <a href="../../../smart-http/chapter-1/file_upload.html">
            
                    
                    1.3 文件上传/下载
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2.4" data-path="../../../smart-http/chapter-1/websocket.html">
            
                <a href="../../../smart-http/chapter-1/websocket.html">
            
                    
                    1.4 WebSocket
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" >
            
                <span>
            
                    
                    技术分享
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../../../share/rpc/smart-socket-rpc.html">
            
                <a href="../../../share/rpc/smart-socket-rpc.html">
            
                    
                    smart-socket实现RPC
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../../../share/firstfit/readme.html">
            
                <a href="../../../share/firstfit/readme.html">
            
                    
                    内存管理-首次适应算法
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="../../../share/thread/readme.html">
            
                <a href="../../../share/thread/readme.html">
            
                    
                    Thread知多少
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../../../donation.html">
            
                <a href="../../../donation.html">
            
                    
                    关于捐赠
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../../.." >2.3 客户端</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div class="search-plus" id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h2 id="&#x5BA2;&#x6237;&#x7AEF;aioquickclient">&#x5BA2;&#x6237;&#x7AEF;AioQuickClient</h2>
<p>&#x5728;&#x8FC7;&#x53BB;&#x6211;&#x4E0D;&#x66FE;&#x89C9;&#x5F97;&#x6846;&#x67B6;&#x5BF9;&#x4E8E;&#x63D0;&#x4F9B;&#x5BA2;&#x6237;&#x7AEF;API&#x6709;&#x591A;&#x91CD;&#x8981;&#xFF0C;&#x56E0;&#x4E3A;&#x5373;&#x4FBF;&#x91C7;&#x7528;&#x6700;&#x4F20;&#x7EDF;&#x7684;BIO&#x6280;&#x672F;&#x4E5F;&#x80FD;&#x6EE1;&#x8DB3;&#x6211;&#x4EEC;&#x7684;&#x4E1A;&#x52A1;&#x6240;&#x9700;&#x3002;
&#x76F4;&#x5230;&#x4ECE;&#x4E8B;&#x4E92;&#x8054;&#x7F51;&#x5F00;&#x884C;&#x4E1A;&#x540E;&#x624D;&#x610F;&#x8BC6;&#x5230;&#x4E00;&#x4E2A;&#x95EE;&#x9898;&#xFF0C;&#x968F;&#x7740;&#x4E1A;&#x52A1;&#x7684;&#x53D1;&#x5C55;&#x4F1A;&#x5728;&#x7CFB;&#x7EDF;&#x4E2D;&#x5B58;&#x5728;&#x5927;&#x91CF;&#x7684;RPC&#x670D;&#x52A1;&#xFF0C;&#x6240;&#x4EE5;&#x670D;&#x52A1;&#x8C03;&#x7528;&#x65B9;&#x53EF;&#x80FD;&#x4F1A;&#x521B;&#x5EFA;&#x51E0;&#x5341;&#x751A;&#x81F3;&#x4E0A;&#x767E;&#x4E2A;&#x5BA2;&#x6237;&#x7AEF;&#x8FDE;&#x63A5;&#x3002;
&#x5982;&#x679C;&#x7EE7;&#x7EED;&#x91C7;&#x7528;BIO&#x6280;&#x672F;&#xFF0C;&#x5355;&#x5355;&#x901A;&#x4FE1;&#x6240;&#x9700;&#x7684;&#x7EBF;&#x7A0B;&#x8D44;&#x6E90;&#x90FD;&#x4F1A;&#x5BF9;&#x7CFB;&#x7EDF;&#x8FD0;&#x884C;&#x9020;&#x6210;&#x5DE8;&#x5927;&#x8D1F;&#x62C5;&#x3002;
&#x800C;&#x8FD0;&#x7528;AIO&#x6280;&#x672F;&#x53EF;&#x4EE5;&#x5B9E;&#x73B0;&#x5BA2;&#x6237;&#x7AEF;&#x901A;&#x4FE1;&#x7EBF;&#x7A0B;&#x8D44;&#x6E90;&#x5171;&#x4EAB;&#xFF0C;&#x4EC5;&#x9700;&#x5C11;&#x91CF;&#x7EBF;&#x7A0B;&#x4FBF;&#x53EF;&#x652F;&#x6301;&#x51E0;&#x767E;&#x4E0A;&#x5343;&#x7684;&#x5BA2;&#x6237;&#x7AEF;&#x8FDE;&#x63A5;&#x3002;</p>
<p>smart-socket&#x63D0;&#x4F9B;&#x7684;&#x5BA2;&#x6237;&#x7AEF;&#x670D;&#x52A1;AioQuickClient&#x5728;&#x4EE3;&#x7801;&#x5B9E;&#x73B0;&#x4E0A;&#x6BD4;&#x8F83;&#x7B80;&#x5355;&#xFF0C;&#x5E76;&#x4E14;&#x5C3D;&#x91CF;&#x8BA9;&#x5FC5;&#x8981;&#x7684;&#x4E8B;&#x60C5;&#x90FD;&#x5728;&#x6784;&#x9020;&#x65B9;&#x6CD5;&#x4E2D;&#x5B8C;&#x6210;&#xFF0C;&#x6838;&#x5FC3;&#x7684;&#x51E0;&#x4E2A;&#x8981;&#x7D20;&#x53EA;&#x6709;host&#x3001;port&#x3001;protocol&#x3001;messageProcessor&#x3002;
&#x5982;&#x4EC5;&#x9700;&#x4EE5;&#x4E0B;&#x51E0;&#x884C;&#x4EE3;&#x7801;&#x4FBF;&#x5B8C;&#x6210;&#x5BA2;&#x6237;&#x7AEF;&#x7684;&#x521B;&#x5EFA;&#x3001;&#x901A;&#x4FE1;&#x3001;&#x5173;&#x95ED;&#x3002;</p>
<pre><code class="lang-java"><span class="hljs-keyword">public</span> <span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">IntegerClient</span> </span>{
    <span class="hljs-function"><span class="hljs-keyword">public</span> <span class="hljs-keyword">static</span> <span class="hljs-keyword">void</span> <span class="hljs-title">main</span><span class="hljs-params">(String[] args)</span> <span class="hljs-keyword">throws</span> Exception </span>{
        AioQuickClient&lt;Integer&gt; aioQuickClient = <span class="hljs-keyword">new</span> AioQuickClient&lt;Integer&gt;(<span class="hljs-string">&quot;localhost&quot;</span>, <span class="hljs-number">8888</span>, <span class="hljs-keyword">new</span> IntegerProtocol(), <span class="hljs-keyword">new</span> IntegerClientProcessor());
        AioSession&lt;Integer&gt; session = aioQuickClient.start();
        session.writeBuffer().writeInt(<span class="hljs-number">1</span>);
        Thread.sleep(<span class="hljs-number">1000</span>);
        aioQuickClient.shutdown();
    }
}
</code></pre>
<p>&#x5728;smart-socket&#x4E2D;&#x5B9E;&#x73B0;&#x5BA2;&#x6237;&#x7AEF;<code>AioQuickClient</code>&#x529F;&#x80FD;&#x7684;&#x4EE3;&#x7801;&#x91CF;&#x975E;&#x5E38;&#x5C11;&#xFF0C;&#x6700;&#x590D;&#x6742;&#x7684;&#x903B;&#x8F91;&#x4E5F;&#x5C31;&#x662F;start&#x65B9;&#x6CD5;&#x3002;
&#x5728;&#x5BA2;&#x6237;&#x7AEF;&#x4E2D;&#x5B58;&#x5728;&#x4E24;&#x4E2A;start&#x65B9;&#x6CD5;&#xFF0C;&#x4E24;&#x8005;&#x7684;&#x533A;&#x522B;&#x5728;&#x4E8E;&#x7EBF;&#x7A0B;&#x8D44;&#x6E90;&#x662F;&#x72EC;&#x4EAB;&#x8FD8;&#x662F;&#x5171;&#x4EAB;&#x7684;&#x3002;&#x503C;&#x5F97;&#x6CE8;&#x610F;&#x7684;&#x662F;&#xFF0C;&#x6267;&#x884C;start&#x540E;&#x4F1A;&#x8FD4;&#x56DE;&#x5F53;&#x524D;&#x5BA2;&#x6237;&#x7AEF;&#x7684;AioSession&#x5BF9;&#x8C61;&#xFF0C;&#x5982;&#x6B64;&#x4E00;&#x6765;&#x5EFA;&#x7ACB;&#x521B;&#x5EFA;&#x6210;&#x529F;&#x540E;&#x53EF;&#x76F4;&#x63A5;&#x8FDB;&#x884C;&#x6570;&#x636E;&#x8F93;&#x51FA;&#x3002;</p>
<pre><code class="lang-java">
<span class="hljs-function"><span class="hljs-keyword">public</span> <span class="hljs-keyword">final</span> AioSession&lt;T&gt; <span class="hljs-title">start</span><span class="hljs-params">()</span> <span class="hljs-keyword">throws</span> IOException, ExecutionException, InterruptedException </span>{
    <span class="hljs-keyword">this</span>.asynchronousChannelGroup = AsynchronousChannelGroup.withFixedThreadPool(<span class="hljs-number">2</span>, <span class="hljs-keyword">new</span> ThreadFactory() {
            <span class="hljs-meta">@Override</span>
            <span class="hljs-function"><span class="hljs-keyword">public</span> Thread <span class="hljs-title">newThread</span><span class="hljs-params">(Runnable r)</span> </span>{
                <span class="hljs-keyword">return</span> <span class="hljs-keyword">new</span> Thread(r);
            }
        });
        <span class="hljs-keyword">return</span> start(asynchronousChannelGroup);
    }

<span class="hljs-function"><span class="hljs-keyword">public</span> AioSession&lt;T&gt; <span class="hljs-title">start</span><span class="hljs-params">(AsynchronousChannelGroup asynchronousChannelGroup)</span> <span class="hljs-keyword">throws</span> IOException, ExecutionException, InterruptedException </span>{
    AsynchronousSocketChannel socketChannel = AsynchronousSocketChannel.open(asynchronousChannelGroup);
    <span class="hljs-keyword">if</span> (bufferPool == <span class="hljs-keyword">null</span>) {
        bufferPool = <span class="hljs-keyword">new</span> BufferPagePool(IoServerConfig.getIntProperty(IoServerConfig.Property.CLIENT_PAGE_SIZE, <span class="hljs-number">1024</span> * <span class="hljs-number">256</span>), <span class="hljs-number">1</span>, IoServerConfig.getBoolProperty(IoServerConfig.Property.CLIENT_PAGE_IS_DIRECT, <span class="hljs-keyword">true</span>));
    }
    <span class="hljs-comment">//set socket options</span>
    <span class="hljs-keyword">if</span> (config.getSocketOptions() != <span class="hljs-keyword">null</span>) {
        <span class="hljs-keyword">for</span> (Map.Entry&lt;SocketOption&lt;Object&gt;, Object&gt; entry : config.getSocketOptions().entrySet()) {
            socketChannel.setOption(entry.getKey(), entry.getValue());
        }
    }
    <span class="hljs-comment">//bind host</span>
    <span class="hljs-keyword">if</span> (localAddress != <span class="hljs-keyword">null</span>) {
        socketChannel.bind(localAddress);
    }
    socketChannel.connect(<span class="hljs-keyword">new</span> InetSocketAddress(config.getHost(), config.getPort())).get();
    <span class="hljs-comment">//&#x8FDE;&#x63A5;&#x6210;&#x529F;&#x5219;&#x6784;&#x9020;AIOSession&#x5BF9;&#x8C61;</span>
    session = <span class="hljs-keyword">new</span> AioSession&lt;T&gt;(socketChannel, config, <span class="hljs-keyword">new</span> ReadCompletionHandler&lt;T&gt;(), <span class="hljs-keyword">new</span> WriteCompletionHandler&lt;T&gt;(), bufferPool.allocateBufferPage());
    session.initSession();
    <span class="hljs-keyword">return</span> session;
}
</code></pre>
<footer class="page-footer"><span class="copyright">Copyright &#xA9; smartboot.org 2018 all right reserved&#xFF0C;powered by Gitbook</span><span class="footer-modification">&#x8BE5;&#x6587;&#x4EF6;&#x4FEE;&#x8BA2;&#x65F6;&#x95F4;&#xFF1A;
2019-07-07 13:48:45
</span></footer>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="../服务端/" class="navigation navigation-prev " aria-label="Previous page: 2.2 服务端">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="../AioSession/" class="navigation navigation-next " aria-label="Next page: 2.4 会话AioSession">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"2.3 客户端","level":"1.2.3.3","depth":3,"next":{"title":"2.4 会话AioSession","level":"1.2.3.4","depth":3,"path":"smart-socket/chapter-2/AioSession/README.md","ref":"smart-socket/chapter-2/AioSession/README.md","articles":[]},"previous":{"title":"2.2 服务端","level":"1.2.3.2","depth":3,"path":"smart-socket/chapter-2/服务端/README.md","ref":"smart-socket/chapter-2/服务端/README.md","articles":[]},"dir":"ltr"},"config":{"plugins":["-lunr","-search","-sharing","search-plus","expandable-chapters-interactive","tbfed-pagefooter","github","github-buttons","edit-link"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"tbfed-pagefooter":{"copyright":"Copyright &copy smartboot.org 2018","modify_label":"该文件修订时间：","modify_format":"YYYY-MM-DD HH:mm:ss"},"github":{"url":"https://github.com/smartboot/smart-socket"},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"expandable-chapters-interactive":{},"github-buttons":{"buttons":[{"user":"smartboot","repo":"smart-socket","type":"star","size":"small","count":true}]},"edit-link":{"label":"Edit This Page","base":"https://gitee.com/smartboot/book/edit/master"},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"search-plus":{}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"smartboot 中文指南","language":"en","gitbook":"*","description":"本文涵盖了smartboot下所有项目的技术手册"},"file":{"path":"smart-socket/chapter-2/客户端/README.md","mtime":"2019-07-07T05:48:45.284Z","type":"markdown"},"gitbook":{"version":"3.2.2","time":"2020-04-02T05:22:17.739Z"},"basePath":"../../..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../../../gitbook/gitbook.js"></script>
    <script src="../../../gitbook/theme.js"></script>
    
        
        <script src="../../../gitbook/gitbook-plugin-search-plus/jquery.mark.min.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-search-plus/search.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-expandable-chapters-interactive/expandable-chapters.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-github/plugin.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-github-buttons/plugin.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-edit-link/plugin.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

